﻿@model Hk.Core.Services.CategoryService
@{
    ViewBag.Title = "Category";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var idx = 0;
}

@section SEO{
    @Html.Raw(ViewBag.Meta)
}

<h1>@Model.Term.name</h1>

<ul class="row">
    @foreach (var item in Model.ListPost)
    {
        idx++;
        <li class="col-xs-12 col-sm-6 col-md-3 ">
            <div class="inner_content clearfix text-center">
                <div class="product_image">
                    <a href="@AppSettings.CurrentDomain@item.Url" title="@item.Title" class="product_image">
                        <img src="/Content/images/10-home_default.jpg" alt="@item.Title"></a>
                </div>
                <p class="price_container">
                    <span class="price">$628.96</span>
                </p>
                <h6><a class="product_link" href="@AppSettings.CurrentDomain@item.Url" title="@item.Title">@item.Title</a></h6>
            </div>
        </li>
        if (idx % 4 == 0)
        {
            @Html.Raw("</ul><ul class=\"row\">")
        }
    }
</ul>
@Html.Raw(Model.Pagination)
